/* You can add global styles to this file, and also import other style files */
@import "~ng-pick-datetime/assets/style/picker.min.css";
@import 'library';

html, body {
  height: 100%;
}

body {
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
  overflow: hidden;
  margin: 0;
}

.search-area {
  //background: #f5f5f5;
  height: 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  place-content: center flex-start;
  align-items: center;
  flex-shrink: 0;
  padding-left: 4px;
  padding-right: 16px;
}

.mat-column-btns {
  cursor: pointer;
  flex: 0 0 75px;
  place-content: center;
  align-items: center;
  align-content: center;
  max-width: 75px;
  min-width: 75px;
  padding: 0 !important;
  border-left: 1px solid #e0e0e0;
}

.flow-card-event {
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;

  & > header {
    height: 40px;
    //background-color: #3f51b5;
    //background-color: #5566c3;
    background-color: @primary;
    color: white;

    & > span {
      margin-left: 16px;
    }
  }

  & > section {
    //border-left: 2px #3f51b5 solid;
    //border-left: 2px #5566c3 solid;
    border-left: 2px @primary solid;

    .mat-table {
      width: 100%;
    }

    .mat-header-row {
      height: 48px;
    }
  }
}

.mat-table.statistic-report {
  overflow-y: auto;

  .mat-cell,
  .mat-header-cell,
  .mat-footer-cell {
    justify-content: center;
  }

  .line-sum,
  .mat-footer-cell {
    font-weight: bold;
  }

  .mat-cell:first-of-type,
  .mat-footer-cell:first-of-type,
  .mat-header-cell:first-of-type {
    padding-left: 0;
  }

  .mat-cell:last-of-type,
  .mat-footer-cell:last-of-type,
  .mat-header-cell:last-of-type {
    padding-right: 0;
  }

  .mat-row.line-sum {
    background-color: #fbed50;
  }

  .mat-footer-row {
    background-color: #c4e3f3;
  }

}

.mat-table.package-box {
  width: 100%;

  th, td {
    white-space: nowrap;

    span {
      text-align: center;
    }
  }

  .mat-column-select {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    border-right: 1px solid #e0e0e0;
  }

  .mat-column-compositeField {
    text-align: center;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
  }

  .mat-column-silkCount,
  .mat-column-grade {
    .td-width(50px);
  }

  .mat-column-grossWeight,
  .mat-column-netWeight {
    .td-width(80px);
  }

  .mat-column-budat {
    .td-width(130px);
  }

  .mat-column-palletCode,
  .mat-column-packageType,
  .mat-column-palletType,
  .mat-column-sapT001l {
    .td-width(100px);
  }

  .mat-column-palletCode {
    //border-right: none;
  }

  .mat-column-foamType {
    .td-width(140px);
  }

  .mat-column-foamNum {
    .td-width(70px);
  }

  .mat-column-creator {
    .td-width(150px);
  }

  .mat-column-createDateTime {
    .td-width(160px);
  }

  .mat-column-btns {
    .td-width(50px);
  }
}

.board-page {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  color: #fff;
  background: url('assets/img/board/background.jpg') center no-repeat;
  background-size: cover;

  header.board-title {
    text-align: center;
    padding: 0 1em;

    .logo {
      width: 13.5em;
    }

    .title-name {
      display: inline-block;

      span {
        font-size: 2.7em;
      }
    }

    .date-box {
      border: .1em solid #2c647c;
      height: 3em;
      line-height: 3em;
      padding: 0 .6em;
      border-radius: .4em;

      span {
        font-size: 1.8em;
      }
    }
  }

  main.board-content {
    margin-top: 2rem;
    border-top: .1em solid #2c647c;

    table {
      width: 100%;
      border-collapse: collapse;
      border-color: #1d9a9a;
      font-size: 1.5rem;
      font-weight: 400;

      thead {
        tr {
          background-color: rgba(6, 19, 31, 0.6);
        }

        th {
          color: #51ffff;
        }
      }

      tr {
        color: white;
        text-align: center;
        line-height: 2.5rem;
      }

      tr:nth-child(even) {
        background-color: rgba(6, 19, 31, 0.6);
      }
    }
  }
}

::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background-color: @mediumgray;
  outline: 1px solid @darkgray;
}

///* 设置滚动条的样式 */
//::-webkit-scrollbar {
//  height: 6px;
//  width: 6px;
//}
//
///* 滚动槽 */
//::-webkit-scrollbar-track {
//  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
//  background-color: #F5F5F5;
//}
//
///* 滚动条滑块 */
//::-webkit-scrollbar-thumb {
//  outline: 1px solid #333;
//  background: rgba(0, 0, 0, 0.1);
//  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
//}
//
::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(255, 0, 0, 0.4);
}
